RichTextKit v0.4

Buffer<T>.Replace Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils
Declaring Type: Buffer<T>

Replaces all instances of a value in the buffer with another value

public int Replace(T oldValue, T newValue);

Parameters

T oldValue

The value to replace

T newValue

The new value

Returns

int

The number of replacements made